package com.hutao.medical.pojo.vo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;


public class MedicalAjaxVo{

	private String name;
	
	private String idCard;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date outHospitalStartDate;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date outHospitalEndDate;
	
	private String mrId;
	
	private Integer outHospitalOfficeId;
	
	
	private Integer totalCounts = 0; //总条数
	private Integer totalPages = 0;//总页数
	
	private Integer pageSize=1; //每页条数
	
	private Integer currentPage=1; //当前页
	
	private Integer currentStartNum=0; //当前

	public Integer getCurrentStartNum() {
		currentStartNum = (currentPage.intValue()-1)*pageSize.intValue();
		return currentStartNum;
	}

	public Integer getTotalCounts() {
		return totalCounts;
	}

	public void setTotalCounts(Integer totalCounts) {
		this.totalCounts = totalCounts;
	}

	public Integer getTotalPages() {
		totalPages = totalCounts.intValue()%pageSize.intValue()==0?totalCounts.intValue()/pageSize.intValue():(totalCounts.intValue()/pageSize.intValue())+1;
		return  totalPages;
	}


	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}
	
	//private List<Integer> outHospitalTypeIds = new ArrayList<Integer>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public Date getOutHospitalStartDate() {
		return outHospitalStartDate;
	}

	public void setOutHospitalStartDate(Date outHospitalStartDate) {
		this.outHospitalStartDate = outHospitalStartDate;
	}

	public Date getOutHospitalEndDate() {
		return outHospitalEndDate;
	}

	public void setOutHospitalEndDate(Date outHospitalEndDate) {
		this.outHospitalEndDate = outHospitalEndDate;
	}

	public String getMrId() {
		return mrId;
	}

	public void setMrId(String mrId) {
		this.mrId = mrId;
	}

	public Integer getOutHospitalOfficeId() {
		return outHospitalOfficeId;
	}

	public void setOutHospitalOfficeId(Integer outHospitalOfficeId) {
		this.outHospitalOfficeId = outHospitalOfficeId;
	}

//	public List<Integer> getOutHospitalTypeIds() {
//		return outHospitalTypeIds;
//	}
//
//	public void setOutHospitalTypeIds(List<Integer> outHospitalTypeIds) {
//		this.outHospitalTypeIds = outHospitalTypeIds;
//	}

	
	
}
